aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/sujet/[slug].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-19 14:45:06 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-19 14:47:40 +0100
commit1fa8d8281371db25ef9382b6087b7f3c0db73fe3 (patch)
tree898aee1e9a23c06e9658de240474d90870190e68 /src/pages/sujet/[slug].tsx
parenta26b775b7bbf1abd3e99c8bf9ce4c7522d3a0adc (diff)
refactor(config): move defaultLocale as property of config.locales
I will need the country code, so I think it makes more sense to gather them inside the same property.
Diffstat (limited to 'src/pages/sujet/[slug].tsx')
-rw-r--r--src/pages/sujet/[slug].tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx
index 97c76c0..bc87845 100644
--- a/src/pages/sujet/[slug].tsx
+++ b/src/pages/sujet/[slug].tsx
@@ -59,7 +59,7 @@ const Subject: NextPageWithLayout<SubjectProps> = ({ subject }) => {
breadcrumb: { '@id': `${config.url}/#breadcrumb` },
name: subject.seo.title,
description: subject.seo.metaDesc,
- inLanguage: config.defaultLocale,
+ inLanguage: config.locales.defaultLocale,
reviewedBy: { '@id': `${config.url}/#branding` },
url: `${config.url}`,
isPartOf: {
@@ -84,7 +84,7 @@ const Subject: NextPageWithLayout<SubjectProps> = ({ subject }) => {
editor: { '@id': `${config.url}/#branding` },
thumbnailUrl: subject.featuredImage?.sourceUrl,
image: subject.featuredImage?.sourceUrl,
- inLanguage: config.defaultLocale,
+ inLanguage: config.locales.defaultLocale,
isPartOf: { '@id': `${config.url}/blog` },
license: 'https://creativecommons.org/licenses/by-sa/4.0/deed.fr',
mainEntityOfPage: { '@id': `${config.url}${router.asPath}` },